<h1>Listing modulos</h1>

<table>
  <tr>

    <th>Descrição</th>
    <th>Sistema</th>

  </tr>
  
<% for modulo in @modulos %>
  <tr>
    <td><%= modulo.descricao %></td> 
    <td><%= modulo.sistema.descricao %></td>
    <td><%= link_to 'Show', :action => 'show', :id => modulo %></td>
    <td><%= link_to 'Edit', :action => 'edit', :id => modulo %></td>
    <td><%= link_to 'Destroy', { :action => 'destroy', :id => modulo }, :confirm => 'Are you sure?', :method => :post %></td>
  </tr>
<% end %>
</table>

<%= link_to 'Previous page', { :page => @modulo_pages.current.previous } if @modulo_pages.current.previous %>
<%= link_to 'Next page', { :page => @modulo_pages.current.next } if @modulo_pages.current.next %> 

<br />

<%= link_to 'New modulo', :action => 'new' %>
